Fix preview app worker proxy access issue - #87
Merged
richardthe3rd merged 1 commit intoDec 2, 2025
Conversation
Changed Access-Control-Max-Age from 86400s (24 hours) to 300s (5 minutes). This allows faster recovery when CORS issues occur with preview deployments, while still providing caching benefits to reduce OPTIONS requests. Fixes issue where preview deployments couldn't access the worker proxy unless in a private session due to cached CORS failures.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a CORS caching issue that prevented preview deployments from accessing the worker proxy. The change reduces the preflight cache duration from 24 hours to 5 minutes, allowing faster recovery from cached CORS failures while still providing benefits to reduce OPTIONS requests.
Key Changes:
- Modified
Access-Control-Max-Ageheader value from 86400 to 300 seconds (5 minutes)
richardthe3rd
deleted the
claude/fix-preview-worker-proxy-01M2QfvgqgzavYUxKRMYzMy8
branch
December 2, 2025 20:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changed Access-Control-Max-Age from 86400s (24 hours) to 300s (5 minutes). This allows faster recovery when CORS issues occur with preview deployments, while still providing caching benefits to reduce OPTIONS requests.
Fixes issue where preview deployments couldn't access the worker proxy unless in a private session due to cached CORS failures.